#include<stdio.h>

void main()
{
	int y;
	printf("input year num\n");

	while(scanf("%d", &y))
	{
		if((y % 4 == 0 && y % 100 != 0) || y % 400 == 0)
		{
			printf("It's leap year\n");
		}
		else
		{
			printf("It's ordinary year\n");
		}
		printf("input year num\n");
	}
	
}
